import javax.jws.soap.SOAPBinding;
import java.util.Scanner;
class Dog{
    String name;
    int age;
    String colour;

    public void bark () {
        System.out.println(name + "汪汪叫了叫");
    }
    public void wag () {
        System.out.println(name + "摇了摇尾巴");
    }
}

class Student {
    String  name;
    String gender;
    int age;
    double weight;

    public void doHom(){
        System.out.println("按时完成作业");
    }
    public void goCla(){
        System.out.println("上课从不迟到");
    }
}
public class Test {
    /*模拟一个学生对象
    public static void main(String[] args) {
        Student stu1 = new Student();
        stu1.name = "凌幺";
        stu1.age = 19;
        stu1.weight = 128.6;
        System.out.println("这是我的学生" + stu1.name + ",他今年" + stu1.age + "岁了" + ",体重" +stu1.weight + "斤" + ",这是他平常的优良习惯:");
        stu1.doHom();
        stu1.goCla();
    }
    */

    /*模拟一个小狗对象
    public static void main(String[] args) {
        Dog dog1 = new Dog();
        dog1.name = "旺财";
        dog1.age = 2;
        dog1.colour = "黄黑色";
        System.out.println("我有一条狗叫" + dog1.name + ",已经" + dog1.age+ "岁了,颜色是"+ dog1.colour +",下面让它表演一下");
        dog1.wag();
        dog1.bark();
    }
     */

    /*判断一年是否为闰年
    static boolean func(int year){
        if((year % 100 !=0 && year % 4 == 0)||(year % 400 == 0)){
            return  true;
        }
        else {
            return  false;
        }
    }
    public static void main(String[] args) {
        int year = 0;
        Scanner scan = new Scanner(System.in);
        year = scan.nextInt();
        if(func(year)){
            System.out.println("yes");
        }
        else{
            System.out.println("no");
        }
    }
    */
}
